<?php defined('SYSPATH') or die('No direct script access.');

class Controller_Redirect extends Controller_Frontend {
	
	public function action_redirect()
	{
		$redirect = Request::current()->param('url');
		
		if (base64_decode($redirect) !== FALSE)
			$redirect = base64_decode($redirect);
		elseif(urldecode($redirect) !== FALSE)
			$redirect = urldecode($redirect);
		
		Request::current()->redirect($redirect);
	}
	
}